package com.campus.delivery.vo.earnings;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 配送员收益记录VO
 */
@Data
@ApiModel("配送员收益记录VO")
public class EarningsRecordVo {
    @ApiModelProperty("记录ID")
    private Long id;

    @ApiModelProperty("配送员ID")
    private Integer deliveryId;

    @ApiModelProperty("收益日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate earningDate;

    @ApiModelProperty("完成订单数")
    private Integer totalOrders;

    @ApiModelProperty("总收益")
    private BigDecimal totalEarnings;

}